Skip to main content

Save Dynamic Category

POST : http://<base_url>/digipay/v3/user/dynamic_category

This API used to Save new Dynamic Category Data into the system

BODY PARAMS:-

ParameterTypeDescriptionValue
nameStringRepresents the name associated with an entity. For example, it could be the name of a product or a userSample Name
category_keyStringThis field holds a key or identifier for categorizing the entity. It's used to group similar items together, such as products in a specific category.random_category
display_orderIntIndicates the order in which the entity should be displayed. It's an integer value that determines the position in a list or interface.3
typeIntRepresents the type or classification of the entity. It could denote different variations or classes within a broader category.2
is_defaultBooleanA boolean flag indicating whether the entity is set as the default option. For instance, it might signify a default setting for a user profile or product choice.true/false
no_of_doc_requiredIntSpecifies the number of documents required or associated with the entity. This could be relevant for processes requiring documentation submission.5
user_typeIntRepresents the type of user associated with the entity. It could denote different roles or permissions levels in an application.2
transaction_pinStringtransaction of amount transfer to another account1234
user_typeIntInterger type of user2
ir_country_idStringHolds an identifier or code related to a specific country. This could be used to link the entity to a particular country.IR12345

HEADERS:-

ParameterTypeDescriptionValue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request POST \
--url http://192.168.1.102:8014/digipay/v3/user/dynamic_category \
--header 'Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2NWY0ZDI1MDliZmU0NTBmYTg4MTVhNTU5Njk3YmM0NyIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNjkzNTIxOTU1fQ.9oWwUzlFzmYB1ZOhaVamxKJH6DsMO8tFue2kbg2YyoI' \
--header 'CompanyID: 76bc712200ca444fa334f9e55e5fd7a8' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"name": "Sample Name",
"category_key": "c",
"display_order": 3,
"type": 2,
"is_default": false,
"no_of_doc_required": 5,
"user_type": 2,
"ir_country_id": "IR12345"
}
'

Response:-

Response 200(OK)

{
"success": 1,
"error": [],
"data": {
"message": "USER_DYNAMIC_CATEGORY_DATA_SAVE_SUCCESSFULLY",
"dynamic_category_id": "6a651c1c48a2baa5eee44c98430c"
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400Bad Request
404Not Found
500Internal Server Error